Keycloak REST Services 1.5.0-Final

Path: / admin / realms / {realm} / clients / {id} / scope-mappings / realm

Get list of realm-level roles associated with this client's scope.

Path parameters:
realm - realm name (not id!)
id - id of client (not client-id)

Sub-Resources
Resources
NameDescription
availableGet list of realm-level roles that are available to attach to this client's scope.
compositeGet all effective realm-level roles that are associated with this client's scope.

Resource Methods
Method Summary
NameDescription
GET /admin/realms/{realm}/clients/{id}/scope-mappings/realmGet list of realm-level roles associated with this client's scope.
POST /admin/realms/{realm}/clients/{id}/scope-mappings/realmAdd a set of realm-level roles to the client's scope
DELETE /admin/realms/{realm}/clients/{id}/scope-mappings/realmRemove a set of realm-level roles from the client's scope

Method Detail

GET /admin/realms/{realm}/clients/{id}/scope-mappings/realm

Get list of realm-level roles associated with this client's scope.

HTTP Example:
GET /admin/realms/{realm}/clients/{id}/scope-mappings/realm
API Example:

ScopeMappedResource.getRealmScopeMappings({'realm': /* name realm name (not id!) */,
  'id': /* id id of client (not client-id) */});

Output:
List<RoleRepresentation> -
Produces:
application/json

POST /admin/realms/{realm}/clients/{id}/scope-mappings/realm

Add a set of realm-level roles to the client's scope

HTTP Example:
POST /admin/realms/{realm}/clients/{id}/scope-mappings/realm
API Example:

ScopeMappedResource.addRealmScopeMappings({'realm': /* name realm name (not id!) */,
  'id': /* id id of client (not client-id) */,
  '$entity': /* roles */});

Input:
List<RoleRepresentation>
Output:
void
Consumes:
application/json

DELETE /admin/realms/{realm}/clients/{id}/scope-mappings/realm

Remove a set of realm-level roles from the client's scope

HTTP Example:
DELETE /admin/realms/{realm}/clients/{id}/scope-mappings/realm
API Example:

ScopeMappedResource.deleteRealmScopeMappings({'realm': /* name realm name (not id!) */,
  'id': /* id id of client (not client-id) */,
  '$entity': /* roles */});

Input:
List<RoleRepresentation>
Output:
void
Consumes:
application/json

Keycloak REST Services 1.5.0-Final